/* 文章页面特有样式 */
.post-hero {
    padding-top: 180px;
    padding-bottom: 60px;
}

.post-hero h1 {
    font-size: 64px;
    margin-bottom: 24px;
    line-height: 1.3;
}

.post-meta-hero {
    color: #b2bec3;
    font-size: 18px;
    margin-bottom: 16px;
}

.post-author-hero {
    color: #00cec9;
    display: inline-block;
    margin-right: 20px;
}

.post-date-hero {
    display: inline-block;
    margin-right: 20px;
}

.post-category-hero {
    display: inline-block;
    color: #ff7675;
}

.post-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    overflow: hidden;
    margin-bottom: 80px;
}

.post-content-main {
    width: 68%;
    float: left;
    padding-right: 30px;
    box-sizing: border-box;
}

.post-featured-image {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-body {
    font-size: 18px;
    line-height: 1.8;
    color: #f1f1f1;
}

.post-body p {
    margin-bottom: 24px;
}

.post-body h3 {
    font-size: 28px;
    margin: 40px 0 20px;
    color: #00cec9;
    position: relative;
    padding-bottom: 10px;
}

.post-body h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 2px;
    background: #ff7675;
}

.post-body ul, .post-body ol {
    margin: 0 0 24px 40px;
}

.post-body li {
    margin-bottom: 12px;
}

.post-body blockquote {
    border-left: 4px solid #6c5ce7;
    padding: 20px 30px;
    margin: 30px 0;
    background: rgba(108, 92, 231, 0.1);
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.post-share {
    margin: 60px 0;
    padding: 20px;
    background: linear-gradient(145deg, rgba(24, 25, 31, 0.5), rgba(15, 16, 20, 0.7));
    border-radius: 12px;
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.post-share h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #00cec9;
}

.share-buttons {
    overflow: hidden;
}

.share-btn {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(108, 92, 231, 0.15);
    color: #6c5ce7;
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: 6px;
    text-decoration: none;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: rgba(108, 92, 231, 0.3);
    transform: translateY(-3px);
}

.share-btn:nth-child(2) {
    background: rgba(0, 206, 201, 0.15);
    color: #00cec9;
    border-color: rgba(0, 206, 201, 0.3);
}

.share-btn:nth-child(2):hover {
    background: rgba(0, 206, 201, 0.3);
}

.share-btn:nth-child(3) {
    background: rgba(255, 118, 117, 0.15);
    color: #ff7675;
    border-color: rgba(255, 118, 117, 0.3);
}

.share-btn:nth-child(3):hover {
    background: rgba(255, 118, 117, 0.3);
}

.post-author-bio {
    background: linear-gradient(145deg, rgba(24, 25, 31, 0.8), rgba(15, 16, 20, 0.9));
    border-radius: 12px;
    padding: 30px;
    margin: 60px 0;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    float: left;
    margin-right: 25px;
    border: 3px solid rgba(0, 206, 201, 0.3);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info {
    overflow: hidden;
}

.author-info h4 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #00cec9;
}

.author-info p {
    color: #b2bec3;
    font-size: 16px;
    line-height: 1.6;
}

.related-posts {
    margin: 60px 0;
}

.related-posts h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #00cec9;
    position: relative;
    padding-bottom: 10px;
}

.related-posts h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 2px;
    background: #ff7675;
}

.related-posts-grid {
    display: flex;
    justify-content: space-between;
}

.related-post-card {
    width: 48%;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(24, 25, 31, 0.6);
    transition: all 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.related-post-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.related-post-card h4 {
    padding: 20px;
    font-size: 18px;
}

.related-post-card h4 a {
    color: #f1f1f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-card:hover h4 a {
    color: #00cec9;
}

/* 侧边栏样式 */
.post-sidebar {
    width: 32%;
    float: right;
    padding-left: 20px;
    box-sizing: border-box;
}

.sidebar-widget {
    background: linear-gradient(145deg, rgba(24, 25, 31, 0.8), rgba(15, 16, 20, 0.9));
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-widget h3 {
    font-size: 22px;
    margin-bottom: 25px;
    color: #00cec9;
    position: relative;
    padding-bottom: 10px;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #ff7675;
}

.tag-cloud {
    overflow: hidden;
}

.tag-cloud .tag {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    margin: 0 8px 12px 0;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-cloud .tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.popular-posts {
    margin-top: 10px;
}

.popular-post-item {
    display: flex;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.popular-post-item:hover {
    transform: translateX(5px);
}

.popular-post-item:last-child {
    margin-bottom: 0;
}

.popular-post-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.popular-post-info {
    margin-left: 15px;
    text-align: left;
}

.popular-post-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.popular-post-info h4 a {
    color: #f1f1f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-post-info h4 a:hover {
    color: #00cec9;
}

.popular-post-date {
    font-size: 12px;
    color: #b2bec3;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .post-content-main {
        width: 100%;
        float: none;
        padding-right: 0;
    }

    .post-sidebar {
        width: 100%;
        float: none;
        padding-left: 0;
        margin-top: 60px;
    }

    .related-posts-grid {
        flex-direction: column;
    }

    .related-post-card {
        width: 100%;
        margin-bottom: 20px;
    }

    .related-post-card:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .post-hero h1 {
        font-size: 48px;
    }

    .post-meta-hero {
        font-size: 16px;
    }

    .post-author-hero, .post-date-hero, .post-category-hero {
        display: block;
        margin-right: 0;
        margin-bottom: 8px;
    }

    .author-avatar {
        float: none;
        margin: 0 auto 20px;
    }

    .author-info {
        text-align: center;
    }
}